<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>法规管理</title>
    <link rel="stylesheet" href="/static/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/global.css">
    <link rel="stylesheet" href="/static/css/rulesF.css">
    <link rel="shortcut icon" type="image/x-icon" href="/static/img/zhandian.ico">
    <script src="/static/lib/layui/layui.js"></script>
</head>
<body>
<div class="main">

    <div th:replace="commons/bar::topbar"></div>

    <div th:replace="commons/bar::sidebar"></div>

    <div class="mainContent">
        <div class="content">
            <header>
                <div style="display: inline-block" class="my-btn">
                    <input type="button" value="添加法律法规" class="layui-btn layui-btn-radius layui-btn-lg layui-btn-normal">
                </div>
            </header>

            <!--//添加信息-->
            <div id="addRulesF" style="display: none">
                <form class="layui-form layui-form-pane" id="testInfo">
                    <div class="layui-form-item">
                        <label class="layui-form-label">英文名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="usname" lay-verify="required" placeholder="请输入法规英文名字" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">中文名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="cnname" lay-verify="required" placeholder="请输入法规中文名字" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">法规地区</label>
                        <div class="layui-input-block">
                            <input type="radio" name="region" value="china" title="中国" checked>
                            <input type="radio" name="region" value="us" title="国际" >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn addInfo" lay-submit lay-filter="rules">立即提交</button>
                        </div>
                    </div>
                </form>
            </div>

            <div id="editRulesF" style="display: none">
                <form class="layui-form layui-form-pane" lay-filter="editRulesF">
                    <input name="id" type="hidden">
                    <div class="layui-form-item">
                        <label class="layui-form-label">英文名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="usname" lay-verify="required" placeholder="请输入法规英文名字" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">中文名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="cnname" lay-verify="required" placeholder="请输入法规中文名字" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">法规地区</label>
                        <div class="layui-input-block">
                            <input type="radio" name="region" value="china" title="中国" checked>
                            <input type="radio" name="region" value="us" title="国际" >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn addInfo" lay-submit lay-filter="rulesEdit">确认修改</button>
                        </div>
                    </div>
                </form>
            </div>
            <!--操作-->
            <script type="text/html" id="barDemo">
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detail">修改</a>
            </script>
            <!--初始化页面-->
            <div id="mainPage">
                <table class="layui-hide" id="RulesF-demo-China" lay-filter="test"></table>
            </div>
        </div>
    </div>
</div>
<script>
    layui.config({
        base: '/static/js/'
    }).use('rulesF');
</script>
</body>
</html>